package com.hziee.mail.model;

import javax.persistence.*;
import java.util.Objects;

@Entity
@Table(name = "goods_swipe_img_directionary", schema = "mall", catalog = "")
public class GoodsSwipeImgDirectionaryEntity {
    private int id;
    private String goodsId;
    private String goodsSwipeImg;

    @Id
    @Column(name = "id")
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Basic
    @Column(name = "goods_id")
    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    @Basic
    @Column(name = "goods_swipe_img")
    public String getGoodsSwipeImg() {
        return goodsSwipeImg;
    }

    public void setGoodsSwipeImg(String goodsSwipeImg) {
        this.goodsSwipeImg = goodsSwipeImg;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        GoodsSwipeImgDirectionaryEntity that = (GoodsSwipeImgDirectionaryEntity) o;
        return id == that.id &&
                Objects.equals(goodsId, that.goodsId) &&
                Objects.equals(goodsSwipeImg, that.goodsSwipeImg);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, goodsId, goodsSwipeImg);
    }
}
